import ajax from './ajax'

const BASE_URL = process.env.NODE_ENV === 'production' ? '' : '/api_rym';

// api
export const reqAppList = parms => ajax(BASE_URL + '/api/app_list', parms, 'POST');

export const reqDevicesList = parms => ajax(BASE_URL + '/api/devices_list', parms, 'POST');

export const reqAPPDevicesImgList = parms => ajax(BASE_URL + '/api/app_device_img_list', parms, 'POST');

export const reqAPPExecTimeList = parms => ajax(BASE_URL + '/api/app_exec_time_list', parms, 'POST');

export const reqNextDayExecTime = parms => ajax(BASE_URL + '/api/next_day_exec_time', parms, 'POST');

export const reqRYMStart = parms => ajax(BASE_URL + '/api/rym_start', parms, 'POST');

export const reqRYMStop = parms => ajax(BASE_URL + '/api/rym_stop', parms, 'POST');

export const reqRYMSingleReStart = parms => ajax(BASE_URL + '/api/rym_single_restart', parms, 'POST');

export const reqRYMSingleStop = parms => ajax(BASE_URL + '/api/rym_single_stop', parms, 'POST');

export const reqAPPServiceHost = parms => ajax(BASE_URL + '/api/app_service_host', parms, 'POST');

//post 获取设备列表  get是app用
export const reqRegWifiDevicesPost = parms => ajax(BASE_URL + '/api/reg_wifi_devices', parms, 'POST');
//get 是注册
export const reqRegWifiDevicesGet = parms => ajax(BASE_URL + '/api/reg_wifi_devices', parms, 'GET');

export const reqReStartADB = parms => ajax(BASE_URL + '/api/app_restart_adb', parms, 'POST');
